<?php
/**
 * home controller
 * @package app-home_controller_home
 */
load_controller('/homebase');
/**
 * home controller
 * @author pandajingjing
 * @package app-home_controller_home
 */
class home_homecontroller extends homebasecontroller{

	function doRequest(){
		load_lib('/bll/member/home');
		$strHistoryURL=self::getURL();
		$clsBllMember=new bll_member_home();
		$strLoginURL=$clsBllMember->getMemCenterURL('login',$strHistoryURL,$this->getTime());
		$strLogoutURL=$clsBllMember->getMemCenterURL('logout',$strHistoryURL,$this->getTime());
		$strRegURL=$clsBllMember->getMemCenterURL('reg',$strHistoryURL,$this->getTime());
		
		$arrUserInfo=$clsBllMember->decryptLoginInfo($this->getParam('authcode','cookie'));
		
		$this->setData('strLoginURL',$strLoginURL);
		$this->setData('strLogoutURL',$strLogoutURL);
		$this->setData('strRegURL',$strRegURL);
		$this->setData('arrUserInfo',$arrUserInfo);
		//sleep(5);
		return '/home/home';
	}

	/**
	 * 获取访问该控制器的路径
	 */
	static function getURL($p_strAction='',$p_arrParam=array(),$p_bolSecure=false,$p_strPre=''){
		return parent::getURL('',$p_strAction,$p_arrParam);
	}
}